//
//  CoreDatePickerView.h
//  mobile
//
//  Created by abc on 2018/1/31.
//  Copyright © 2018年 azazie. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CorePickerView.h"

typedef NS_ENUM(NSInteger, DateDisplayType)
{
    DateDisplayType_Style    = 0,
    DateDisplayType_Mode     = 1,
    DateDisplayType_Format   = 2
};

@interface CoreDatePickerView : CorePickerView

+ (CoreDatePickerView *)datePickerView;

/**
 *  显示时间选择器
 *
 *  @param title            标题
 *  @param type             类型（时间、日期、日期和时间、倒计时）
 *  @param clearBlock       清除的回调
 *  @param resultBlock      选择结果的回调
 *
 */
+ (CoreDatePickerView *)datePickerViewWithTitle:(NSString *)title
                                       dateType:(UIDatePickerMode)type
                                     clearBlock:(ClearBlock)clearBlock
                                    resultBlock:(ResultBlock)resultBlock;

- (CoreDatePickerView *(^)(NSDate *date))minDate;
- (CoreDatePickerView *(^)(NSDate *date))maxDate;
- (CoreDatePickerView *(^)(NSDate *date))defaultSelDate;
- (CoreDatePickerView *(^)(NSString *value))defaultSelValue;

- (CoreDatePickerView *(^)(BOOL autoSelect))autoSelect;

- (CoreDatePickerView *(^)(NSString *displatFormat))displatFormat;
- (CoreDatePickerView *(^)(UIDatePickerMode displayMode))displayMode;
- (CoreDatePickerView *(^)(NSDateFormatterStyle displatStyle))displatStyle;

- (CoreDatePickerView *(^)())show;

@end
